package com.example.administrator.gplineview;

import android.graphics.Paint;

/**
 * Created by Administrator
 * Created on 2017/4/18
 */

public class TextUtil {
    public static float getTextWidth(Paint paint, String text) {
        return paint.measureText(text);
    }

    public static float getTextHeight(Paint paint) {
        return paint.descent() - paint.ascent();
    }
}
